package com.xyoto.community.mapper.main;

import com.xyoto.community.entity.main.AnonyAvatarUrl;
import com.xyoto.community.entity.main.AnonyName;
import com.xyoto.community.entity.main.AnonymousUser;

import java.util.List;

/**
 * ClassName:   匿名信息mapper接口
 * Author:      挽风
 * Date:        2020
 * Copyright:   2020 by 挽风1.0版本
 * Description:
 **/
public interface AnonyUserMapper {

    AnonymousUser getAnonyUserInfo(Integer userId);

    List<AnonyName> getAnonyNameList();

    List<AnonyAvatarUrl> getAnonyAvatarList();

    Integer updateAnonymousUser(AnonymousUser anonymousUser);

    /**
     * 获取匿名用户信息列表
     * @return
     */
    List<AnonymousUser> getAnonymousUserList();

    /**
     * 添加匿名用户信息
     * @param anonymousUser
     * @return
     */
    Integer saveAnonymousUser(AnonymousUser anonymousUser);

    /**
     * 根据匿名用户id查询匿名用户信息
     * @param id
     * @return
     */
    AnonymousUser getAnonymousById(Integer id);
}
